
import newsLayout from '@/news/layout'

export default {

  path: '/news', // 路径
  name: 'News', // 给路由规则加一个name
  redirect: '/news/list',
  component: newsLayout, // 组件
  // hidden: true,
  meta: { title: '新闻前台系统' },
  children: [
    {
      path: 'list',
      name: 'NewsList',
      component: () => import('@/news/views/list'),
      hidden: false,
      meta: { title: '首页' }
    },
    {
      path: 'details/:article_id',
      name: 'NewsDetails',
      component: () => import('@/news/views/details'),
      hidden: true,
      meta: { title: '文章详情' }
    },
    {
      path: 'user/settings',
      name: 'NewsUserSettings',
      component: () => import('@/news/views/Settings'),
      hidden: true,
      meta: { title: '设置中心' }
    },
    {
      path: 'user/:user_id',
      name: 'NewsUser',
      component: () => import('@/news/views/User'),
      hidden: true,
      meta: { title: '个人中心' }
    },
    {
      path: 'creator',
      name: 'NewsCreator',
      redirect: '/news/creator/home',
      component: () => import('@/news/views/Creator'),
      hidden: false,
      meta: { title: '创作者中心' },
      children: [
        {
          path: 'home',
          component: () => import('@/news/views/Creator/Home'),
          hidden: true,
          meta: { title: '首页' }
        },
        {
          path: 'help/question',
          component: () => import('@/news/views/Creator/Help'),
          hidden: true,
          meta: { title: '常见问题' }
        },
        {
          path: 'article',
          component: () => import('@/news/views/Creator/Article'),
          hidden: true,
          meta: { title: '内容管理' }
        },

        {
          path: 'list',
          name: 'List',
          component: () => import('@/news/views/Creator/Article/list'), // Parent router-view
          meta: { title: '文章列表' }

        },

        {
          path: 'information',
          name: 'information',
          component: () => import('@/news/views/Creator/Article/information'), // Parent router-view
          meta: { title: '文章数据' }

        },

        {
          path: 'published',
          name: 'Published',
          component: () => import('@/news/views/Creator/Article/published'),
          meta: { title: '文章发布' }
        },

        {
          path: 'comment',
          name: 'Comment',
          component: () => import('@/news/views/Creator/Article/comment'),
          meta: { title: '文章评论' }
        }
      ]
    }

  ]

}

// {
//   path: 'category',
//   name: 'Category',
//   component: () => import('@/views/article/category'),
//   meta: { title: '文章分类' }
// },
// {
//   path: 'published',
//   name: 'Published',
//   component: () => import('@/views/article/published'),
//   meta: { title: '文章发布' }
// },
// {
//   path: 'comment',
//   name: 'Comment',
//   component: () => import('@/views/article/comment'),
//   meta: { title: '文章评论' }
// },
// {
//   path: 'reports',
//   name: 'Reports',
//   component: () => import('@/views/article/reports'),
//   meta: { title: '文章举报' }
// // },
